﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;

namespace celinda.Repository
{
    public interface IRepository<T>
    {
        IList<T> GetAll();
        T GetByID(int id);
        void Save(T obj);
        void Delete(T obj);
        void Update(T obj);
        void DeleteByID(string idPropertyName, int objId);
        IList<T> GetByPropertyName(string idPropertyName, string pvalue);

    }
    public interface INHBRepository
    {
        ISessionFactory CreateSessionFactory();

    }
}
